package mock.servicesdirectory.geography.dao.daoimpl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import mock.servicesdirectory.common.entities.TrustDistrict;
import mock.servicesdirectory.geography.dao.daointerface.TrustDistrictDao;

public class TrustDistrictDaoImpl extends HibernateDaoSupport implements TrustDistrictDao {

	@Override
	public void addTrustDistrict(TrustDistrict trustDistrict) {
		getHibernateTemplate().save(trustDistrict);

	}

	@Override
	public List<TrustDistrict> listTrustDistrict() {
		return getHibernateTemplate().find("from TrustDistrict");
	}

}
